package no.sachmuld.methodcombination.examples.reflection.designbycontract.stack;

/**
 *
 */
public class Main implements Runnable {

    @Override
    public void run() {

        Main.class.getClassLoader().setDefaultAssertionStatus(true);

        Stack<String> stack = new Stack<>();
        stack.push("foo");
        System.out.println(stack.top());
        System.out.println(stack.size());
        System.out.println(stack.empty());
        System.out.println(stack.pop());
        System.out.println(stack.size());
        System.out.println(stack.empty());

    }

    public static void main(String... args) {

        new Main().run();

    }
}
